package com.yugao.fintech.draper.admin.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yugao.fintech.draper.admin.entity.OauthClientDetails;
import com.yugao.fintech.draper.auth.dto.ClientDetailsDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ClientDetailsConvert {

	ClientDetailsConvert INSTANCE = Mappers.getMapper(ClientDetailsConvert.class);

	Page<ClientDetailsDTO> convertPage(Page<OauthClientDetails> clientDetailsPage);

	List<ClientDetailsDTO> convertList(List<OauthClientDetails> clientDetails);

	ClientDetailsDTO convert(OauthClientDetails oauthClientDetails);

	OauthClientDetails convert(ClientDetailsDTO clientDetailsDTO);

}